package com.bgIntlgn.client.entity.manufacture;

import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * 计划条目和订单的关系表
 * 
 * @author yuhui
 * 
 */
@Table(name = "iterm_orders", constrain = "")
public class ItermOrder implements Bean {

	@Field(name = "production_iterm_id", type = "int8", constrain = "not null references production_iterms(id)  on update cascade on delete cascade")
	private Long producitonItermId;

	@Field(name = "order_cargo_id", type = "int8 ", constrain = " not null references orders(id)  on update cascade on delete cascade")
	private Long orderCargoId;

	/**
	 * 如果没有从订单视图直接的选取派工， 则顺次从最紧迫的日期开始起顺次变化, 或者按照优先级顺次变化。 表示是否已经被处理， 指买回或者生产完成。
	 */
	@Field(name = "produced", type = "boolean ", constrain = "")
	private boolean produced;

	public Long getProducitonItermId() {
		return this.producitonItermId;
	}

	public void setProducitonItermId(Long producitonItermId) {
		this.producitonItermId = producitonItermId;
	}

	public Long getOrderCargoId() {
		return this.orderCargoId;
	}

	public void setOrderCargoId(Long orderCargoId) {
		this.orderCargoId = orderCargoId;
	}

	public boolean isProduced() {
		return this.produced;
	}

	public void setProduced(boolean produced) {
		this.produced = produced;
	}

}
